package com.gmt.controller;

import com.gmt.model.Person;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author John.zhang
 * @version Id: HeapController, v 1.0 2020/12/18 17:57 ZhiYong Exp $
 */
@RestController
public class HeapController {

    List<Person> list = new ArrayList<>();

    @GetMapping("/heap")
    public void heap() {

        while (true) {
            list.add(new Person());
        }
    }
}
